#!/usr/bin/python
# coding=utf-8
import json

from public import config, verification, clear_user, date, ran, encryp
from public.http import POST

register_tel_values = {"name":"15515515518","password":"qwer1234","code":"1234","uid":""}
url = config.domain + '/ja/v1/user/regist'
uid = ""


# 正常电话注册
def tel():
    datajson = json.loads(POST(url, register_tel_values))
    data = datajson["ret"]
    if data == 200:
        global uid
        uid = datajson["uid"]
    return data

if __name__ == '__main__':
    verification(tel(), "regist", 200)
